home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13192 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  885 b 

  1. Path: rex.cadvision.com!usenet
  2. From: schachtf@cadvision.com (schachtf)
  3. Newsgroups: comp.lang.c
  4. Subject: C C++ DLL's for VB help
  5. Date: 5 Apr 1996 02:09:08 GMT
  6. Organization: Your Organization
  7. Message-ID: <4k1vc4$11bq@rex.cadvision.com>
  8. NNTP-Posting-Host: cadd148.cadvision.com
  9. X-Newsreader: WinVN 0.92.6+
  10.  
  11. I have recently started programming in VB and attempting to write
  12. DLL's under Borland C C++ 3.1 . So I can use my C code
  13. I have an example DLL which compiles ok and from VB it calls a
  14. dialog box. Now I am trying to add more code to this DLL without any luck
  15. This code below complies OK but I am havind problems calling it
  16. from VB 
  17.  
  18. void CALLBACK _export openfile( char *file)
  19.    fopen (file, "r"); // just to see if it works so far
  20.    // do stuff
  21. }
  22.  
  23. Is it the code which is incorrect of call from VB ??
  24.    How should my VB code look ??
  25.  
  26. Thanks to anyone that can help
  27. Fred....
  28.